package com.eastfair.venueservice.dto;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.ServiceBorrowReturnGoodsLossStateEnum;
import com.eastfair.venueservice.enumeration.ServiceBorrowReturnReturnStateEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 借用归还记录
 * </p>
 *
 * @author dq
 * @since 2022-09-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ServiceBorrowReturnPageQuery", description = "借用归还记录")
public class ServiceBorrowReturnPageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    private String inventoryCode;
    /**
     * 借用原因
     */
    @ApiModelProperty(value = "借用原因")
    private String borrowReason;
    /**
     * 借用数量
     */
    @ApiModelProperty(value = "借用数量")
    private BigDecimal borrowNum;
    /**
     * 借用部门id
     */
    @ApiModelProperty(value = "借用部门id")
    private Long borrowOrgId;
    /**
     * 借用部门名称
     */
    @ApiModelProperty(value = "借用部门名称")
    private String borrowOrgName;
    /**
     * 借用人
     */
    @ApiModelProperty(value = "借用人")
    private String borrower;
    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式")
    private String contact;
    /**
     * 使用地点
     */
    @ApiModelProperty(value = "使用地点")
    private String usingAddress;
    /**
     * 借用日期
     */
    @ApiModelProperty(value = "借用日期")
    private LocalDate borrowDate;
    /**
     * 借用经办人
     */
    @ApiModelProperty(value = "借用经办人")
    private Long borrowOperator;
    /**
     * 借用经办人姓名
     */
    @ApiModelProperty(value = "借用经办人姓名")
    private String borrowOperatorName;
    /**
     * 预计归还日期
     */
    @ApiModelProperty(value = "预计归还日期")
    private LocalDate expectedReturnDate;
    /**
     * 实际归还日期
     */
    @ApiModelProperty(value = "实际归还日期")
    private LocalDate realReturnDate;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 归还人
     */
    @ApiModelProperty(value = "归还人")
    private String returnee;
    /**
     * 归还人手机号码
     */
    @ApiModelProperty(value = "归还人手机号码")
    private String returnPhone;
    /**
     * 物资完损状态 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏;UNDAMAGED:未损坏}
     */
    @ApiModelProperty(value = "物资完损状态 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏;UNDAMAGED:未损坏}")
    private ServiceBorrowReturnGoodsLossStateEnum goodsLossState;
    /**
     * 归还备注
     */
    @ApiModelProperty(value = "归还备注")
    private String returnRemark;
    /**
     * 归还经办人
     */
    @ApiModelProperty(value = "归还经办人")
    private Long returnOperator;
    /**
     * 归还经办人姓名
     */
    @ApiModelProperty(value = "归还经办人姓名")
    private String returnOperatorName;
    /**
     * 归还状态 #{NO:未归还;YES:已归还}
     */
    @ApiModelProperty(value = "归还状态 #{NO:未归还;YES:已归还}")
    private ServiceBorrowReturnReturnStateEnum returnState;

}
